package org.jgs1904.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.jgs1904.bean.Pager;
import org.jgs1904.entity.Post;

/**
 * 	帖子业务接口
 * @author junki
 * @date 2020年3月26日
 */
public interface PostService {

	List<Post> getList() throws SQLException;

	Post add(Post post) throws SQLException;

	Post getOneById(Long id) throws SQLException;

	Pager<Post> getPage(Long currentPage, Long pageSize, Long pageNumShowLength, Map<String, String[]> paramMap) throws SQLException;

	void addAll(List<Post> list) throws SQLException;

}
